package com.cgsd.heyu.adapter;

import android.content.Context;

import com.android.library.adapter.BaseMultiItemAdapter;
import com.android.library.adapter.ViewHolder;
import com.cgsd.heyu.R;
import com.cgsd.heyu.entity.GoodsEntity;

import java.util.List;

/**
 * @author xiaoxing
 * Description 积分商城
 * CreateData: 2021/1/7
 */
public class IntegralShopAdapter extends BaseMultiItemAdapter<GoodsEntity> {

    public IntegralShopAdapter(Context mContext, List<GoodsEntity> mDatas) {
        super(mContext, mDatas);
    }

    @Override
    protected int muItemViewType(int position, GoodsEntity goodsEntity) {
        return 0;
    }

    @Override
    protected int muLayoutId(int itemType) {
        return R.layout.item_integeal_shop;
    }

    @Override
    public void convert(ViewHolder holder, GoodsEntity goodsEntity, int position) {
        holder.setImageUrl(R.id.iv_bg,goodsEntity.imageUrl);
    }
}
